<?php

class ApoioController extends App_Controller_Action
{
    public function cepAction()
    {
        if ($st_cep = $this->_getParam('cep')) {
            $filtro = new Zend_Filter_Digits();
            $st_cep = $filtro->filter($st_cep);
            $service  = new Ev_Service_Geografico();
            $response = $service->consultar($st_cep);
            $this->_helper->json->sendJson($response);
        }
    }
}
